package com.cims.bo.user;

import com.cims.common.vo.User;
import com.cims.dao.user.UserDAO;
import com.cims.dao.user.UserDAOImpl;

public class UserBOImpl implements UserBO{

	public UserDAO	dao	= new UserDAOImpl();

	@Override
	public boolean authenticateUser(String username, String password){
		try{
			return dao.authenticateUser(username, password);
		}catch(Exception ex){
			System.out.println(ex.getMessage());
			return false;
		}
	}

	@Override
	public User getUserDetail(String username){
		try{
			return dao.getUserDetail(username);
		}catch(Exception ex){
			return null;
		}
	}

}
